package sample.syntaxparser;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 * User: seth.yang
 * Date: 2010-9-15
 * Time: 17:48:45
 */
public class Role {
    private String name, cssClass, style;
    private Map<String, String> attributes = new HashMap<String, String> ();

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }

    public String getCssClass () {
        return cssClass;
    }

    public void setCssClass (String cssClass) {
        this.cssClass = cssClass;
    }

    public String getStyle () {
        return style;
    }

    public void setStyle (String style) {
        this.style = style;
    }

    public void addAttribute (String key, String value) {
        attributes.put (key, value);
    }

    public Map<String, String> getAttributes () {
        return attributes;
    }
}